package com.jshare.dao;

import java.util.List;

import com.jshare.entity.ArComment;

public interface ArCommentDAO {

	//property constants
	public static final String COMMENT = "comment";
	public static final String COMMENTER = "commenter";
	public static final String EMAIL = "email";
	/**
	 * 把评论存数据库
	 * @param transientInstance
	 */
	public void putComment(ArComment arccomment,int articleId);
	
	public abstract void save(ArComment transientInstance);

	public abstract void delete(ArComment persistentInstance);

	public abstract ArComment findById(java.lang.Integer id);

	public abstract List findByExample(ArComment instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByComment(Object comment);

	public abstract List findByCommenter(Object commenter);

	public abstract List findByEmail(Object email);

	public abstract List findAll();

	public abstract ArComment merge(ArComment detachedInstance);

	public abstract void attachDirty(ArComment instance);

	public abstract void attachClean(ArComment instance);

}